
public class Carta implements ElementoDeJuego{
	private String palo;
	private String figura;

	public Carta(String p, String f){
		palo=p;
		figura=f;
	}
	
	public int getValorI(){
		return 0;
	}
	public float getValorF(){
		return 0;
	}
	public double getValorD(){
		if(this.figura.equals("as"))
			return 1;
		else if(this.figura.equals("dos"))
			return 2;
		else if(this.figura.equals("tres"))
			return 3;
		else if(this.figura.equals("cuatro"))
			return 4;
		else if(this.figura.equals("cinco"))
			return 5;
		else if(this.figura.equals("seis"))
			return 6;
		else if(this.figura.equals("siete"))
			return 7;
		else if(this.figura.equals("sota"))
			return 0.5;
		else if(this.figura.equals("caballo"))
			return 0.5;
		else if(this.figura.equals("rey"))
			return 0.5;
		
		return 0;
	}
}

